/**
 * @Author: SnowBeatRain
 * @description: 配置项目的baseUrl，便于统一调用以及修改。
 */

/**
 * author: snowbeatrain
 * description: 生产环境配置 生产环境，非礼勿动
 */
const PROD_CONFIG = {
	API_BASE_URL: "",
	IMG_BASE_URL: "",
	SHARE_BASE_URL: "",
	APP_DOWN_URL: ""
}

/**
 * author: snowbeatrain
 * description: 开发环境
 */
const DEV_CONFIG = {
	API_BASE_URL: "",
	IMG_BASE_URL: "",
	SHARE_BASE_URL: "",
	APP_DOWN_URL: ""
}
/**
 * author: snowbeatrain
 * description: 开发测试环境
 */
const DEV_TEST_CONFIG = {

	API_BASE_URL: "1111111111",
	IMG_BASE_URL: "",
	SHARE_BASE_URL: "",
	APP_DOWN_URL: ""
}

const NODE_ENV = 'test'; // dev:开发环境 | test:测试环境    pro 生产环境

let API_CONFIG = null;

if (import.meta.env.MODE == "development" || process.env.NODE_ENV == "development") {
	if (NODE_ENV === 'dev') {
		API_CONFIG = DEV_CONFIG
	} else if (NODE_ENV === 'test') {
		API_CONFIG = DEV_TEST_CONFIG
	} else {
		API_CONFIG = PROD_CONFIG
	}
} else {
	API_CONFIG = PROD_CONFIG
}

export default API_CONFIG